package top.yehot.kettle.boot.models.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import top.yehot.cmm.util.mybatis.base.BaseTimeEntity;
import top.yehot.kettle.boot.enums.DeleteEnum;
import top.yehot.kettle.boot.enums.RepTypeEnum;

/**
 * 资源库
 * 
 * @author lquan
 * @date 2022年5月28日 下午6:48:23
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("k_repository")
@ApiModel(value = "Repository对象", description = "资源库")
public class Repository extends BaseTimeEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    private String id;

    @ApiModelProperty("资源库名称")
    private String repName;

    @ApiModelProperty("资源库类型: fileRep-文件, dbRep-数据库")
    private RepTypeEnum repType;

    @ApiModelProperty("资源库用户名")
    private String repUsername;

    @ApiModelProperty("资源库密码")
    private String repPassword;

    @ApiModelProperty("文件资源库路径: rep_type=fileRep生效")
    private String repBasePath;

    @ApiModelProperty("数据库类型（MYSQL、ORACLE）")
    private String dbType;

    @ApiModelProperty("数据库访问模式（Native, ODBC, OCI, Plugin, JNDI）")
    private String dbAccess;

    @ApiModelProperty("数据库主机名或IP地址")
    private String dbHost;

    @ApiModelProperty("数据库端口号")
    private String dbPort;

    @ApiModelProperty("数据库名称")
    private String dbName;

    @ApiModelProperty("数据库登录账号")
    private String dbUsername;

    @ApiModelProperty("数据库登录密码")
    private String dbPassword;

    @ApiModelProperty("是否删除：0-否，1-是")
    private DeleteEnum delFlag;

    @ApiModelProperty("描述")
    private String describes;

}
